package com.mc.mcgoweb.utils.convert.detail;

import com.mc.mcgoweb.utils.convert.VoCallbackSupport;
import com.mc.mcgoweb.utils.convert.vo.Order;
import com.mc.mcgoweb.utils.convert.vo.OrderVo;

/***
 * @ClassName SaveOrderConvert
 * @Description todo
 * @Author CC
 * @Date: 2019/3/30 11:50
 * @Version 1.0
 */
public class SaveOrderConvert extends VoCallbackSupport<Order, OrderVo> {

    public SaveOrderConvert(OrderVo orderVo) {
        super(orderVo);
    }

    @Override
    public Order invoke() {
        //实现自己具体的封装逻辑
        Order order = new Order();

        order.setOutsideNo(v.getOutsideNo());
        order.setOrderChannel(v.getOrderChannel());
        order.setOrderNo(v.getOrderNo());
        order.setOrderStatus(1);
        order.setMark("淘宝过来的订单");
        return order;
    }
}
